/*
 * XML Type:  BillStatus
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.BillStatus
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML BillStatus(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class BillStatusImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.ofx.types.x2003.x04.BillStatus
{
    
    public BillStatusImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName BILLSTATUSCODE$0 = 
        new javax.xml.namespace.QName("", "BILLSTATUSCODE");
    private static final javax.xml.namespace.QName DTEFF$2 = 
        new javax.xml.namespace.QName("", "DTEFF");
    private static final javax.xml.namespace.QName STATUSMODBY$4 = 
        new javax.xml.namespace.QName("", "STATUSMODBY");
    
    
    /**
     * Gets the "BILLSTATUSCODE" element
     */
    public net.ofx.types.x2003.x04.BillStatusCodeEnum.Enum getBILLSTATUSCODE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BILLSTATUSCODE$0, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.BillStatusCodeEnum.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "BILLSTATUSCODE" element
     */
    public net.ofx.types.x2003.x04.BillStatusCodeEnum xgetBILLSTATUSCODE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BillStatusCodeEnum target = null;
            target = (net.ofx.types.x2003.x04.BillStatusCodeEnum)get_store().find_element_user(BILLSTATUSCODE$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "BILLSTATUSCODE" element
     */
    public void setBILLSTATUSCODE(net.ofx.types.x2003.x04.BillStatusCodeEnum.Enum billstatuscode)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BILLSTATUSCODE$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BILLSTATUSCODE$0);
            }
            target.setEnumValue(billstatuscode);
        }
    }
    
    /**
     * Sets (as xml) the "BILLSTATUSCODE" element
     */
    public void xsetBILLSTATUSCODE(net.ofx.types.x2003.x04.BillStatusCodeEnum billstatuscode)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BillStatusCodeEnum target = null;
            target = (net.ofx.types.x2003.x04.BillStatusCodeEnum)get_store().find_element_user(BILLSTATUSCODE$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.BillStatusCodeEnum)get_store().add_element_user(BILLSTATUSCODE$0);
            }
            target.set(billstatuscode);
        }
    }
    
    /**
     * Gets the "DTEFF" element
     */
    public java.lang.String getDTEFF()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTEFF$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "DTEFF" element
     */
    public net.ofx.types.x2003.x04.DateTimeType xgetDTEFF()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTEFF$2, 0);
            return target;
        }
    }
    
    /**
     * Sets the "DTEFF" element
     */
    public void setDTEFF(java.lang.String dteff)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTEFF$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DTEFF$2);
            }
            target.setStringValue(dteff);
        }
    }
    
    /**
     * Sets (as xml) the "DTEFF" element
     */
    public void xsetDTEFF(net.ofx.types.x2003.x04.DateTimeType dteff)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTEFF$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.DateTimeType)get_store().add_element_user(DTEFF$2);
            }
            target.set(dteff);
        }
    }
    
    /**
     * Gets the "STATUSMODBY" element
     */
    public net.ofx.types.x2003.x04.StatusModBYEnum.Enum getSTATUSMODBY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STATUSMODBY$4, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.StatusModBYEnum.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "STATUSMODBY" element
     */
    public net.ofx.types.x2003.x04.StatusModBYEnum xgetSTATUSMODBY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.StatusModBYEnum target = null;
            target = (net.ofx.types.x2003.x04.StatusModBYEnum)get_store().find_element_user(STATUSMODBY$4, 0);
            return target;
        }
    }
    
    /**
     * True if has "STATUSMODBY" element
     */
    public boolean isSetSTATUSMODBY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(STATUSMODBY$4) != 0;
        }
    }
    
    /**
     * Sets the "STATUSMODBY" element
     */
    public void setSTATUSMODBY(net.ofx.types.x2003.x04.StatusModBYEnum.Enum statusmodby)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STATUSMODBY$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STATUSMODBY$4);
            }
            target.setEnumValue(statusmodby);
        }
    }
    
    /**
     * Sets (as xml) the "STATUSMODBY" element
     */
    public void xsetSTATUSMODBY(net.ofx.types.x2003.x04.StatusModBYEnum statusmodby)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.StatusModBYEnum target = null;
            target = (net.ofx.types.x2003.x04.StatusModBYEnum)get_store().find_element_user(STATUSMODBY$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.StatusModBYEnum)get_store().add_element_user(STATUSMODBY$4);
            }
            target.set(statusmodby);
        }
    }
    
    /**
     * Unsets the "STATUSMODBY" element
     */
    public void unsetSTATUSMODBY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(STATUSMODBY$4, 0);
        }
    }
}
